﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Viki_BllFactory;
using Viki_IBll;
using Viki_Model;

namespace Viki1
{
    public partial class TeacherDetail : System.Web.UI.Page
    {
        ITeacherService teacherService = Viki_BllFactory.DataAccess.CreateTeacherService();
        protected void Page_Load(object sender, EventArgs e)
        {
            String teacher_id = Request.QueryString["teacher_id"];
            Teacher teacher = teacherService.findTeacher(teacher_id);
            teacher_name.Text = teacher.teacher_name;
            teacher_age.Text = teacher.teacher_age;
            teacher_country.Text = teacher.teacher_country;
            teacher_course.Text = teacher.teacher_course;
            teacher_info.Text = teacher.teacher_info;
            
           
            
        }
    }
}